﻿using System;
using System.Collections;
using System.Data;
using CE.Database;

/// <summary>
/// Summary description for CountryAirportInfoDB
/// </summary>
/// 
namespace CE.AreaCountry
{
    public class CountryAirportInfoDB
    {
        public CountryAirportInfoDB()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public DataTable GetCountryIdByAirport(string airportCode)
        {
            MyDatabase _db = new MyDatabase();
            DataTable _dtResult = new DataTable("Countries");
            string _spName = "sprocCountryAirportInfoSelectItemByAirportCode";
            SortedList _sPara = new SortedList();

            #region Parameter
            _sPara.Add("@AirportCode", airportCode);
            #endregion

            _dtResult = _db.GetDataTableBySP(_spName, _sPara);
            return _dtResult;
        }

    }


}